package com.heima.pojos;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class User implements Serializable {

  private static final long serialVersionUID = 1L;
  @TableId
  @JsonSerialize(using = ToStringSerializer.class)
  private int id;
  private String name;
  private String mobile;
  private String password;
  private String salt;
  private int status;

  @TableField(fill = FieldFill.INSERT)
  private LocalDateTime createdOn;
  private String isDeleted;

  private long roleId;
  private int classId;
  private long groupId;
  private String groupName;
  private int integral;

}
